
#ifndef HTTP_CONTEXT_H_
#define HTTP_CONTEXT_H_

typedef enum HttpRequestParseState {
	ExpectRequestLine		=	0,
	ExpectHeaders				=	1,
	ExpectBody					=	2,
	GotAll								=	3
} HttpRequestParseState;


struct HttpRequest;

typedef struct HttpContext {
	int id;
	enum HttpRequestParseState state;
	struct HttpRequest* httpRequest;
} HttpContext;

struct HttpContext* initHttpContext();
void destroyHttpContext(struct HttpContext* httpContext);

#endif /* HTTP_CONTEXT_H_ */
